package cloud.maque.admin.service;


import cloud.maque.admin.domain.entity.MqUser;
import cloud.maque.admin.domain.entity.MqUserLoginThird;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author 4color
 * @description 针对表【bt_user_biz_ext】的数据库操作Service
 * @createDate 2022-09-26 14:15:41
 */
public interface MqUserLoginThirdService extends IService<MqUserLoginThird> {

    /**
     * 通过第三方ID 找到用户
     *
     * @param thirdId
     * @return
     */
    MqUser GetUser(String thirdId, String type, String tenantId);

    void CreateThird(MqUserLoginThird loginThird);

    MqUserLoginThird GetUserThirdByUserId(String userId, String type, String tenantId);


    boolean Bind(MqUserLoginThird loginThird);

    /**
     * 根据用户和第三方类型找到第三方用户数据
     *
     * @param userId
     * @param type
     * @param tenantId
     * @return
     */
    MqUserLoginThird GetUserByUserAndType(String userId, String type, String tenantId);


}
